#!/bin/bash
# -----------------------------------------------------------------
# FileName: 4-start-web.sh
# Date: 2020-08-26
# Author: jiftle
# Description: 
# -----------------------------------------------------------------
# micro \
#  --registry=etcd \
#  --registry_address=127.0.0.1:2379 \
# list \
# services


# curl -d service='keyservice' \
# -d 'method=KeyServ.GetPsk' \
# -d 'request={"name": "Bob"}' \
# http://127.0.0.1:9011/rpc

# curl -d service='go.micro.api.keyservice' \
# -d 'method=KeyServ.GetPsk' \
# -d 'request={"name": "Bob"}' \
# http://127.0.0.1:9011/rpc

curl "http://127.0.0.1:9011/schkeysrv/KeyServ/Hello?name=john"

# curl -H 'Content-Type: application/json' \
# -d '{"service": "go.micro.api.keyservice", "method": "KeyServ.GetPsk", "request": {"name": "John"}}' \
# http://127.0.0.1:9011/rpc

schkeysrv.KeyServ.GetPsk
